<?php

namespace Admin\Models\bpm;

class XHBpmPlan extends basicModel
{

    /**
     *
     * @var integer
     * @Primary
     * @Column(type="integer", length=11, nullable=false)
     */
    public $iBPPId;

    public $bFinish;

    public $iState;
    /**
     *
     * @var integer
     * @Column(type="integer", length=11, nullable=true)
     */
    public $iCUId;


    public $tPlanDate;

    public $tRealDate;

    public $iTPId;
    /**
     *
     * @var string
     * @Column(type="string", nullable=true)
     */
    public $tStartTime;

    /**
     *
     * @var integer
     * @Column(type="integer", length=11, nullable=true)
     */
    public $iChargeId;

    /**
     *
     * @var string
     * @Column(type="string", nullable=true)
     */
    public $mDesc;

    /**
     *
     * @var integer
     * @Column(type="integer", length=1, nullable=true)
     */
    public $bDelete;

    /**
     *
     * @var string
     * @Column(type="string", nullable=true)
     */
    public $tCreateDate;

    /**
     *
     * @var integer
     * @Column(type="integer", length=20, nullable=true)
     */
    public $iCreateUserId;

    /**
     *
     * @var string
     * @Column(type="string", nullable=true)
     */
    public $tLastModifyDate;

    /**
     *
     * @var integer
     * @Column(type="integer", length=20, nullable=true)
     */
    public $iLastModifyUserId;

    /**
     * 申领平板 1 开启 0 关闭
     * @var integer
     * @Column(type="integer", length=4, nullable=true)
     *
     * create by dale 20181114
     */
    public $bApplyTab;

    /**
     * Initialize method for model.
     */
    public function initialize()
    {
        
        $this->setSource("XHBpm_Plan");
    }

    /**
     * Returns table name mapped in the model.
     *
     * @return string
     */
    public function getSource()
    {
        return 'XHBpm_Plan';
    }

    /**
     * Allows to query a set of records that match the specified conditions
     *
     * @param mixed $parameters
     * @return XHBpmPlan[]|XHBpmPlan|\Phalcon\Mvc\Model\ResultSetInterface
     */
    public static function find($parameters = null)
    {
        return parent::find($parameters);
    }

    /**
     * Allows to query the first record that match the specified conditions
     *
     * @param mixed $parameters
     * @return XHBpmPlan|\Phalcon\Mvc\Model\ResultInterface
     */
    public static function findFirst($parameters = null)
    {
        return parent::findFirst($parameters);
    }


  
    

}
